package com.example.aigc_education.service;

import com.example.aigc_education.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.aigc_education.domain.dto.CourseMongoDto;
import com.example.aigc_education.domain.vo.CourseVO;

import java.time.LocalDate;

/**
* @author 23918
* @description 针对表【stu_course】的数据库操作Service
* @createDate 2024-06-04 17:48:24
*/
public interface CourseService extends IService<Course> {

    void addCourseInMongo(CourseMongoDto courseMongoDto);

    CourseVO selectAllCourseInMongo(Integer year, Integer semester);

 /*   Course updateCourseInMongo(Course newCourse);*/

/*    void deleteCourseByIdInMongo(String courseId);*/

/*    Course selectCourseByIdInMongo(String courseId);*/

    CourseVO selectCourseByWeekInMongo(Integer year, Integer semester, Integer week);

    CourseVO selectCourseByDate( LocalDate date);

    // List<Course> selectCourseByNameInMongo(String courseName);




    void addCourse(Course course);

    void updateCourse(Course course, Long courseId);

    void deleteCourse(Long courseId);

}
